ConnectOut-sdp/sdp2023

View on GitHub
app/src/main/java/com/sdpteam/connectout/authentication/Authentication.java

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package com.sdpteam.connectout.authentication;

import android.content.Intent;

public interface Authentication {

    /**
     * @return true iff there is a currently logged user
     */
    boolean isLoggedIn();

    /**
     * @return the currently logged user, return null if not logged
     */
    AuthenticatedUser loggedUser();

    /**
     * log out the current user
     */
    void logout();

    /**
     * @return the intent to use to launch the UI that will signup/login the user
     */
    Intent buildIntent();
}