Code example for AccountManager

Methods: blockingGetAuthToken, invalidateAuthToken

0
	} 
	 
	 
	public boolean reauth(AbstractAjaxCallback<?, ?> cb){
		 
		am.invalidateAuthToken(acc.type, token);
		 
		try { 
			token = am.blockingGetAuthToken(acc, type, true);
			AQUtility.debug("re token", token);
		} catch (Exception e) {			
			AQUtility.debug(e);
			token = null;
		}  
		 
		return token != null;
		 
	} 
	 
	public String getType(){
		return type;